Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

663
Views
matplotlib.axes.Axes.set_xticks throws "set_ticks() takes 2 positional arguments but 3 were given"

this easy example from matplotlib throws the mentioned error:

https://matplotlib.org/stable/gallery/lines_bars_and_markers/barchart.html

I also cannot find any typo according to the documentation of set_xticks():

https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.set_xticks.html

Can anyone provide clearification and some help, please?

Kind regards, Daniel

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This is error is based on the matplotlib version you use. The set_axis command was changed from matplotlib version 3.4.x to 3.5.x. Try using the newer version. You can install it via

$ pip install matplotlib==3.5.0
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!